package com.healthcarex.hip.saas.web.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @author  ChenPan
 * @date   2018/7/31 10:17
 * description:API接口文档配置
 */
@Configuration
@ConfigurationProperties(prefix = "api.doc")
@Data
public class SwaggerProperties {

    /**
     * 基础路径
     */
    private String basePackage = "com.healthcarex.hip.saas";

    /**
     * 标题
     */
    private String docTitle;

    /**
     * 描述
     */
    private String docDesc;

    /**
     * 团队服务网址
     */
    private String serviceUrl;

    private List<Contact> contacts = new ArrayList<>();
    /**
     * 版本
     */
    private String version;


    @Data
    static class Contact{
        /**
         * 联系人姓名
         */
        private String name;

        /**
         * 联系人url
         */
        private String url;

        /**
         * 联系人邮箱
         */
        private String email;
    }
}
